home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Utilities
/
Stuart
/
slog
/
Makefile
next >
Wrap
Makefile
|
1992-08-10
|
934b
|
46 lines
NAME = slog
MFILES = slog.m
CLASSES = SLogListener.m
# This next line means you should install this as root. Otherwise,
# you cannot get the permissions and ownerships right.
INSTALLFLAGS = -o root -g tty -c -s -m 6755
INSTALLDIR = ../Stuart.app
CFLAGS = -O -g -Wall
OFILES = $(CLASSES:.m=.o) $(MFILES:.m=.o) $(CFILES:.c=.o)
GARBAGE = obj $(OTHER_GARBAGE)
LIBS = -lNeXT_s -lsys_s
OFILE_DIR = obj
VPATH = $(OFILE_DIR)
strip: $(NAME)
strip $(NAME)
$(NAME): $(OFILE_DIR) $(OFILES)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(NAME) $(OFILES) $(LIBS)
dist:: strip cleanobj cleanbak
clean::
rm -rf $(GARBAGE) $(NAME)
cleanobj::
rm -rf $(GARBAGE)
cleanbak::
rm -f *~
install:: $(INSTALLDIR) $(NAME)
install $(INSTALLFLAGS) $(NAME) $(INSTALLDIR)
.c.o:
$(CC) $(CFLAGS) -c $*.c -o $(OFILE_DIR)/$*.o
.m.o:
$(CC) $(CFLAGS) $(OBJCFLAGS) -c $*.m -o $(OFILE_DIR)/$*.o
$(OFILE_DIR):
mkdirs $(OFILE_DIR)
$(INSTALLDIR):
mkdirs $(INSTALLDIR)